package Deom1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-25
 * Time: 21:19
 */
public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog("小黄");
        dog.run();
        Fish fish = new Fish("小鱼儿");
        fish.swim();
        Bird bird = new Bird("布谷");
        bird.fly();
        Flog flog = new Flog("蛙蛙");
        flog.run();
        flog.swim();
        Duck duck = new Duck("唐老鸭");
        duck.fly();
        duck.run();
        duck.swim();
    }
}
